const int Value_Weed = 0;
const int Value_Beet = 3;
const int HP_Beet = 2;
const int Value_SwampHerb = 10;
const int VALUE_SWAMPHERB_02 = 250;
const int Value_Mana_Herb_01 = 10;
const int Mana_Mana_Herb_01 = 10;
const int Value_Mana_Herb_02 = 20;
const int Mana_Mana_Herb_02 = 15;
const int Value_Mana_Herb_03 = 40;
const int Mana_Mana_Herb_03 = 20;
const int Value_Health_Herb_01 = 20;
const int HP_Health_Herb_01 = 10;
const int Value_Health_Herb_02 = 40;
const int HP_Health_Herb_02 = 20;
const int Value_Health_Herb_03 = 60;
const int HP_Health_Herb_03 = 30;
const int Value_Dex_Herb_01 = 250;
const int Value_Strength_Herb_01 = 500;
const int Value_Speed_Herb_01 = 100;
const int Speed_Boost = 15000;
const int Value_Mushroom_01 = 15;
const int HP_Mushroom_01 = 5;
const int Value_Mushroom_02 = 35;
const int HP_Mushroom_02 = 15;
const int Value_Forestberry = 10;
const int HP_Forestberry = 5;
const int Value_Blueplant = 10;
const int HP_Blueplant = 5;
const int Mana_Blueplant = 5;
const int Value_Planeberry = 10;
const int HP_Planeberry = 5;
const int Value_Temp_Herb = 100;
const int HP_Temp_Herb = 5;
const int Value_Perm_Herb = 500;
const int HP_Perm_Herb = 10;
const int HP_SUPER_HERB = 50;
const int HP_PERM_STN_HERB = 1;
 
instance ItPl_Weed(C_Item)
{
	name = "Unkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Weed;
	visual = "ItPl_Weed.3ds";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	description = name;
	text[5] = NAME_Value;
	count[5] = Value_Weed;
};
 
instance ItPl_Beet(C_Item)
{
	name = "Feldrube";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Beet;
	visual = "ItPl_Beet.3ds";
	material = MAT_LEATHER;
	on_state[0] = Use_Beet;
	scemeName = "FOOD";
	description = name;
	text[5] = NAME_Value;
	count[5] = Value_Beet;
};
 
 
func void Use_Beet()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Beet);
};
 
 
instance ItPl_SwampHerb(C_Item)
{
	name = "Sumpfkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_SwampHerb;
	visual = "ItPl_SwampHerb.3ds";
	material = MAT_LEATHER;
	on_state[0] = Use_SwampHerb;
	scemeName = "FOOD";
	description = name;
	text[5] = NAME_Value;
	count[5] = Value_SwampHerb;
};
 
 
func void Use_SwampHerb()
{
	if(Npc_IsPlayer(self))
	{
		Wld_PlayEffect("SLOW_TIME",self,self,0,0,0,FALSE);
	};
};
 
 
instance ITPL_SWAMPHERB_02(C_Item)
{
	name = "Rotes Sumpfkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = VALUE_SWAMPHERB_02;
	visual = "ItPl_SwampHerb_02.3ds";
	material = MAT_LEATHER;
	on_state[0] = use_swampherb_02;
	scemeName = "FOOD";
	description = name;
	text[5] = NAME_Value;
	count[5] = Value_SwampHerb;
};
 
 
func void use_swampherb_02()
{
	if(Npc_IsPlayer(self))
	{
		Wld_PlayEffect("DEMENTOR_FX",self,self,0,0,0,FALSE);
	};
};
 
 
instance ItPl_Mana_Herb_01(C_Item)
{
	name = "Feuernessel";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Mana_Herb_01;
	visual = "ItPl_Mana_Herb_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Mana_Herb_01;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Mana_Herb_01;
	text[5] = NAME_Value;
	count[5] = Value_Mana_Herb_01;
};
 
 
func void Use_Mana_Herb_01()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Mana_Herb_01);
};
 
 
instance ItPl_Mana_Herb_02(C_Item)
{
	name = "Feuerkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Mana_Herb_02;
	visual = "ItPl_Mana_Herb_02.3ds";
	material = MAT_LEATHER;
	on_state[0] = Use_Mana_Herb_02;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Mana_Herb_02;
	text[5] = NAME_Value;
	count[5] = Value_Mana_Herb_02;
};
 
 
func void Use_Mana_Herb_02()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Mana_Herb_02);
};
 
 
instance ItPl_Mana_Herb_03(C_Item)
{
	name = "Feuerwurzel";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Mana_Herb_03;
	visual = "ItPl_Mana_Herb_03.3ds";
	material = MAT_LEATHER;
	on_state[0] = Use_Mana_Herb_03;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Mana_Herb_03;
	text[5] = NAME_Value;
	count[5] = Value_Mana_Herb_03;
};
 
 
func void Use_Mana_Herb_03()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Mana_Herb_03);
};
 
 
instance ItPl_Health_Herb_01(C_Item)
{
	name = "Heilpflanze";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Health_Herb_01;
	visual = "ItPl_Health_Herb_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Health_Herb_01;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Health_Herb_01;
	text[5] = NAME_Value;
	count[5] = Value_Health_Herb_01;
};
 
 
func void Use_Health_Herb_01()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Health_Herb_01);
};
 
 
instance ItPl_Health_Herb_02(C_Item)
{
	name = "Heilkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Health_Herb_02;
	visual = "ItPl_Health_Herb_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Health_Herb_02;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Health_Herb_02;
	text[5] = NAME_Value;
	count[5] = Value_Health_Herb_02;
};
 
 
func void Use_Health_Herb_02()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Health_Herb_02);
};
 
 
instance ItPl_Health_Herb_03(C_Item)
{
	name = "Heilwurzel";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Health_Herb_03;
	visual = "ItPl_Health_Herb_03.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Health_Herb_03;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Health_Herb_03;
	text[5] = NAME_Value;
	count[5] = Value_Health_Herb_03;
};
 
 
func void Use_Health_Herb_03()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Health_Herb_03);
};
 
 
instance ItPl_Dex_Herb_01(C_Item)
{
	name = "Goblinbeeren";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Dex_Herb_01;
	visual = "ItPl_Dex_Herb_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Dex_Herb_01;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_Dex;
	count[1] = 1;
	text[5] = NAME_Value;
	count[5] = Value_Dex_Herb_01;
};
 
 
func void Use_Dex_Herb_01()
{
	B_RaiseAttribute(self,ATR_DEXTERITY,1);
};
 
 
instance ItPl_Strength_Herb_01(C_Item)
{
	name = "Drachenwurzel";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Strength_Herb_01;
	visual = "ItPl_Strength_Herb_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Strength_Herb_01;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_Str;
	count[1] = 1;
	text[5] = NAME_Value;
	count[5] = Value_Strength_Herb_01;
};
 
 
func void Use_Strength_Herb_01()
{
	B_RaiseAttribute(self,ATR_STRENGTH,1);
};
 
 
instance ItPl_Speed_Herb_01(C_Item)
{
	name = "Snapperkraut";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Speed_Herb_01;
	visual = "ItPl_Speed_Herb_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Speed_Herb_01;
	scemeName = "FOOD";
	text[3] = NAME_Sec_Duration;
	count[3] = Speed_Boost / 1000;
	description = name;
	text[5] = NAME_Value;
	count[5] = Value_Speed_Herb_01;
};
 
 
func void Use_Speed_Herb_01()
{
	Mdl_ApplyOverlayMdsTimed(self,"HUMANS_SPRINT.MDS",Speed_Boost);
};
 
 
instance ItPl_Mushroom_01(C_Item)
{
	name = "Dunkelpilz";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Mushroom_01;
	visual = "ItPl_Mushroom_01.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Mushroom_01;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Mushroom_01;
	text[5] = NAME_Value;
	count[5] = Value_Mushroom_01;
};
 
 
func void Use_Mushroom_01()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Mushroom_01);
	if(Npc_IsPlayer(self))
	{
		Dunkelpilz_Bonus = Dunkelpilz_Bonus + 1;
		if(Dunkelpilz_Bonus == 50)
		{
			B_RaiseAttribute(self,ATR_MANA_MAX,5);
			Npc_ChangeAttribute(self,ATR_MANA,5);
			Snd_Play("LevelUp");
			Dunkelpilz_Bonus = 0;
		};
	};
};
 
 
instance ItPl_Mushroom_02(C_Item)
{
	name = "Buddlerfleisch";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Mushroom_02;
	visual = "ItPl_Mushroom_02.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Mushroom_02;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Mushroom_02;
	text[5] = NAME_Value;
	count[5] = Value_Mushroom_02;
};
 
 
func void Use_Mushroom_02()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Mushroom_02);
	if(Npc_IsPlayer(self))
	{
		MUSHROOM_BONUS = MUSHROOM_BONUS + 1;
		if(MUSHROOM_BONUS == 50)
		{
			self.protection[PROT_MAGIC] += 5;
			PrintScreen(PRINT_LEARNPROTMAGIC,-1,-1,FONT_Screen,2);
			Snd_Play("LevelUp");
			MUSHROOM_BONUS = 0;
		};
	};
};
 
 
instance ItPl_Blueplant(C_Item)
{
	name = "Blauflieder";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Blueplant;
	visual = "ItPl_Blueplant.3DS";
	material = MAT_LEATHER;
	on_state[0] = Use_Blueplant;
	scemeName = "FOOD";
	description = name;
	text[1] = NAME_BONUS_STA;
	count[1] = HP_Blueplant;
	text[5] = NAME_Value;
	count[5] = Value_Blueplant;
};
 
 
func void Use_Blueplant()
{
	if(Npc_IsPlayer(self))
	{
		ATR_STAMINA = ATR_STAMINA + 50;
		if(ATR_STAMINA >= (ATR_STAMINA_MAX * 10))
		{
			ATR_STAMINA = ATR_STAMINA_MAX * 10;
			Print(PRINT_HIGHSTAMINA);
		}
		else
		{
			Print(ConcatStrings(ConcatStrings(ConcatStrings("Ausdauer: ",IntToString(ATR_STAMINA/10))," von "),IntToString(ATR_STAMINA_MAX)));
			Print(PRINT_HIGHLOWSTAMINA);
		};
	};
};
 
 
instance ItPl_Forestberry(C_Item)
{
	name = "Waldbeere";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Forestberry;
	visual = "ItPl_Forestberry.3DS";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	on_state[0] = Use_Forestberry;
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Forestberry;
	text[5] = NAME_Value;
	count[5] = Value_Forestberry;
};
 
 
func void Use_Forestberry()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Forestberry);
	if(Npc_IsPlayer(self))
	{
		FORESTBERRY_BONUS = FORESTBERRY_BONUS + 1;
		if(FORESTBERRY_BONUS == 50)
		{
			B_RaiseAttribute(self,ATR_HITPOINTS_MAX,5);
			Npc_ChangeAttribute(self,ATR_HITPOINTS,5);
			Snd_Play("LevelUp");
			FORESTBERRY_BONUS = 0;
		};
	};
};
 
 
instance ItPl_Planeberry(C_Item)
{
	name = "Weidenbeere";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI;
	value = Value_Planeberry;
	visual = "ItPl_Planeberry.3DS";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	on_state[0] = Use_Planeberry;
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Planeberry;
	text[5] = NAME_Value;
	count[5] = Value_Planeberry;
};
 
 
func void Use_Planeberry()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Planeberry);
	if(Npc_IsPlayer(self))
	{
		PLANEBERRY_BONUS = PLANEBERRY_BONUS + 1;
		if(PLANEBERRY_BONUS == 25)
		{
			B_RaiseAttribute(self,ATR_HITPOINTS_MAX,5);
			Npc_ChangeAttribute(self,ATR_HITPOINTS,5);
			Snd_Play("LevelUp");
			PLANEBERRY_BONUS = 0;
		};
	};
};
 
 
instance ItPl_Temp_Herb(C_Item)
{
	name = "Feldknoterich";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = Value_Temp_Herb;
	visual = "ItPl_Temp_Herb.3ds";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	on_state[0] = Use_Temp_Herb;
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Temp_Herb;
	text[5] = NAME_Value;
	count[5] = Value_Temp_Herb;
};
 
 
func void Use_Temp_Herb()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Temp_Herb);
};
 
 
instance ItPl_Perm_Herb(C_Item)
{
	name = "Kronstockel";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = Value_Perm_Herb;
	visual = "ItPl_Perm_Herb.3ds";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	on_state[0] = Use_Perm_Herb;
	description = name;
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Perm_Herb;
	text[5] = NAME_Value;
	count[5] = Value_Perm_Herb;
};
 
 
func void Use_Perm_Herb()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Perm_Herb);
};
 
 
instance ITPL_SUPER_HERB(C_Item)
{
	name = "Trollkirsche";
	mainflag = ITEM_KAT_FOOD;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 500;
	visual = "ItPl_Super_Herb.3ds";
	material = MAT_LEATHER;
	scemeName = "FOOD";
	on_state[0] = use_super_herb;
	description = name;
	text[1] = NAME_BONUS_STAMINAMAX;
	count[1] = HP_PERM_STN_HERB;
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_super_herb()
{
	var string concatText;
	var int staminabonus;
	if(Npc_IsPlayer(self))
	{
		staminabonus = 1;
		ATR_STAMINA_MAX = ATR_STAMINA_MAX + staminabonus;
		ATR_STAMINA = ATR_STAMINA + 10;
		Npc_SetTalentSkill(hero,NPC_TALENT_STAMINA,ATR_STAMINA_MAX);
		concatText = ConcatStrings(PRINT_LEARNSTAMINA_MAX,IntToString(staminabonus));
		PrintScreen(concatText,-1,-1,FONT_Screen,2);
		Snd_Play("LevelUP");
	};
};